<template>
  <div class="modal flex-s flex">
    <div class="inner" :style="{ width, height }">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
  const props = withDefaults(
    defineProps<{
      width?: string;
      height?: string;
    }>(),
    {
      width: '280px',
      height: '180px',
    }
  );
</script>

<style lang="scss" scoped>
  .modal {
    background-color: var(--mask);
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    .inner {
      width: 300px;
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 0 10px rgb(112, 112, 112);
    }
  }
</style>
